<?xml version="1.0" encoding="UTF-8" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/paginas/templates/template.xhtml">
	
	<ui:define name="corpo">

		<h:form id="idFormInicio">
			
			<p:panel header="Login"
					 style="width: 400px; margin: auto; margin-top: 80px;">
				
				<h:panelGrid columns="2" border="0">
					<p:spacer/>
					
					<h:panelGrid style="text-align:center;"
								 width="100%">
						<h:graphicImage library="img/login" name="login_usuario.png"/>
					</h:panelGrid>					
					
					<h:outputLabel value="Login:"/>
					<p:inputText size="50" 
								 value="#{autenticacaoAction.formulario.login}"/>
					
					<h:outputLabel value="Senha:" />
					<p:password size="50" 
								value="#{autenticacaoAction.formulario.senha}"/>
					
					<p:spacer/>
					<p:commandButton action="#{autenticacaoAction.autenticarUsuario}" value="Entrar"/>
					
				</h:panelGrid>
			</p:panel>
			
			<p:commandButton action="#{autenticacaoAction.colocarUsuarioNoEscopo}" value="Logar Usuário"/>
			<p:commandButton value="Usuário Logado?"/>
			
		</h:form>
		
	</ui:define>
	
	<ui:define name="menu">
	</ui:define>	
</ui:composition>
</html>